package com.bdqn.homework3;

/**
 * @author ckf
 * @create 2018 09 27 10:26
 * @desc
 **/
public class Test {
    public void makeFly(ICanFly fly){
        System.out.println("起飞。。。");
    }
    public static void main(String[] args) {
        Test test=new Test();
        Aircraft aircraft=new Aircraft();
        Bird bird=new Bird();
        aircraft.fly();
        test.makeFly(bird);
        bird.fly();
        test.makeFly(aircraft);


    }
}
